package com.lovo.dao;

import com.lovo.bean.Service;
import com.lovo.bean.Staff;

import java.util.List;

public interface ServiceMapper {
    int deleteByPrimaryKey(Integer serviceId);

    int insert(Service record);

    int insertSelective(Service record);

    Service selectByPrimaryKey(Integer serviceId);

    int updateByPrimaryKeySelective(Service record);

    int updateByPrimaryKey(Service record);

    /**
     * 查询所有并分页显示
     * @return
     */
    List<Service> getAll();

    /**
     * 查询所有店员
     * @return
     */
    List<Staff> getStaff();

    /**
     * 根据条件查询所有并分页显示
     * @return
     */
    List<Service> selectByQuery(Service service);
}